package com.zhuiyi.yiqingbackend.domain;

import com.zhuiyi.yiqingbackend.domain.request.AddDeadRequest;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dead implements Serializable {
    private static final long serialVersionUID = 1L;
    private int id;
    private int baseid ;
    private Date deadTime;
    private Base base;
    private Patient patient;
    public Dead(AddDeadRequest request,int baseid) {
        this.baseid = baseid;
        this.deadTime = request.getDeadTime();
    }
}
